<?php
namespace Admin\Controller;
use Think\Controller;
use Think\Auth;
class UserController extends CommonController {
    public function index(){
    	// echo "user-index";
        $this->display();
    }

    public function add()
    {
        $auth=new Auth();
        if($auth->check('is_edit',$_SESSION['id'])){
            echo "你有权限可以编辑";
        }else{
            echo "你没有权限可以编辑";
        }
    	$this->display();
    }

    public function edit()
    {
    	$this->display();
    }
}